package com.example.demo.controller;

import com.example.demo.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kongwg
 * @create 2021-03-08 23:57
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/t1")
    public String test() {
        User user = new User(1, "孔", 18);

        return "我是字符串";
    }


    @GetMapping("/dow")
    public String download() {



        return "seccess";
    }

    @PostMapping("/up")
    public String uploadload() {



        return "seccess";
    }
}
